//贵州api
import { postJson, get } from "@/api/http";
let api = process.env.VUE_APP_API;
if (process.env.VUE_APP_Mock == "true") {
  api = "/mock/";
}

export const GZAPI_EvaluationTime = {
  //获取项目的评审时间信息以及暂停恢复信息
  getProjectEvaluationTimeAndStopInfo: (p) => postJson(api + "/gz/witness/evaluation/getProjectEvaluationTimeAndStopInfo", p),

  // 获取标包评审时间信息以及暂停恢复信息
  getEvaluationTimeAndStopInfo: (p) => postJson(api + "/gz/witness/evaluation/getEvaluationTimeAndStopInfo", p),

  //修改评审时间信息
  updateEvaluationTime: (p) => postJson(api + "/gz/witness/evaluation/updateEvaluationTime", p),

  // 修改项目的评审开始结束时间
  updateObjectEvaluationTime: (p) => postJson(api + "/gz/witness/evaluation/updateProjectEvaluationTime", p),

  //新增或者修改暂停消息
  addOrUpdateStopInfo: (p) => postJson(api + "/gz/witness/evaluation/addOrUpdateStopInfo", p),

  // 删除暂停时间
  deleteStopInfo: (p) => postJson(api + "/gz/witness/evaluation/deleteStopInfo", p),

  // 结束见证
  subtaskFinish: (p) => postJson(api + "/gz/witness/subtask/finish", p),

  // 开启见证
  subtaskStart: (p) => postJson(api + "/gz/witness/subtask/start", p),


  // 批量开始
  subtaskBatchStart: (p) => postJson(api + "/gz/witness/subtask/batch/start", p),

  // 按照类型, 开始项目中指定类型的见证
  subtaskAllStart: (p) => postJson(api + "/gz/witness/subtask/projectStart", p),

  // 按照类型, 结束项目中指定类型的见证
  subtaskAllFinish: (p) => postJson(api + "/gz/witness/subtask/projectFinish", p),


  subtaskListPart: (p) => postJson(api + "/gz/witness/subtask/list/part", p),


  random: (p) => postJson(api + "/gz/witness/subtask/allocate/user/random", p),

  updateExtendData: (p) => get(api + "/gz/witness/record/updateExtendData", p),

  // 获取见证人员见证统计
  projectStatistics: (p) => postJson(api + "/gz/witness/analysis/projectStatistics", p),

  overtimeStatistics:(p) => postJson(api + "/gz/witness/overtime/overtimeStatistics", p),
};
